class FiveChessHallScene extends eui.Component implements eui.UIComponent {

	public renjiBtn: eui.Button;
	public renrenBtn: eui.Button;
	public canjuBtn: eui.Button;
	public netBtn: eui.Button;
	public moreBtn: eui.Button;

	public constructor() {
		super();
		this.skinName = "resource/skins/scene/FiveChessHallSceneSkin.exml";
		this.addEventListener(egret.Event.ADDED_TO_STAGE, this.onAdd, this);
		this.addEventListener(egret.Event.REMOVED_FROM_STAGE, this.onRemove, this);
	}

	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);

	}

	protected childrenCreated(): void {
		super.childrenCreated();
	}

	private onClick(e: egret.TouchEvent) {
		let self = this;
		let target = e.target;
		switch (target) {
			case self.renjiBtn:
				App.UIManager.showScene(FiveChessPlayScene,1);
				break;
		}
	}

	private onAdd(e: egret.Event) {
		this.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this);
	}

	private onRemove(e: egret.Event) {
		this.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onClick, this);
	}

}